export default function formatRTime(time: number) {
  let timeFormat = '00:00';
  if (time) {
    let hours = parseInt(time / 60 + '') + '';
    let minitue = (time % 60) + '';
    if (hours.length === 1) {
      hours = '0' + hours;
    }
    if (minitue.length === 1) {
      minitue = '0' + minitue;
    }
    timeFormat = hours + ':' + minitue;
  }
  return timeFormat;
}
